package com.hk.commons;


import java.util.Objects;

/**
 * get the version information of the software package
 *
 * @author kevin
 * @date 2020-04-18  18:30:08
 */
public record Version() {

    private static String value;

    public static String getVersionString() {
        if (Objects.isNull(value)) {
            value = Version.class.getPackage().getImplementationVersion();
            if (Objects.isNull(value)) {
                value = "[WORKING]";
            }
        }
        return value;
    }
}
